﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Reflection;

namespace DFGK.WMS.Common.Extensions
{
    public static partial class Extension
    {
        /// <summary>
		/// 字符串转换为数组
		/// </summary>
		/// <param name="str"></param>
		/// <returns></returns>
		public static List<string> StringToList(this string str)
        {

            if (string.IsNullOrWhiteSpace(str))
            {
                return null;
            }
            List<string> list = str.Split(new char[] { ';', '；', '、', ',', '，', '|' }, StringSplitOptions.RemoveEmptyEntries).ToList();
            return list;
        }
    }
}
